#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	int n = 0;
	scanf("%d", &n);
	for (i = 1;i <= n;i++)
	{
		for (j = 1;j <= n - i;j++) 
			printf(" ");
		for (j = 1;j <= i;j++)
			printf("*");
		for (j = 1;j <= i-1;j++)
			printf("*");
		printf("\n");
	}
	for (i = 1;i <= n-1;i++)
	{
		for (j = 1;j <= i;j++)
			printf(" ");
		for (j = 1;j <= n - i;j++)
			printf("*");
		for (j = 1;j <= n - i - 1;j++)
			printf("*");
		printf("\n");
	}
}